package com.lcb.jvm;

import com.sun.crypto.provider.DESKeyFactory;

/**
* @Author: 刘长柏
* @Date: 2021-01-03
* @Description: 验证类加载
*/
public class TestJDKClassLoader {
    public static void main(String[] args) {
        System.out.println(String.class.getClassLoader());
        System.out.println(DESKeyFactory.class.getClassLoader().getClass().getName());
        System.out.println(TestJDKClassLoader.class.getClassLoader().getClass().getName());
        System.out.println(User.class.getClassLoader().getClass().getName());
        System.out.println(ClassLoader.getSystemClassLoader().getClass().getName());
    }
}
